import request from "../utils/request";

// 获取标签列表
export function getTagList(data) {
  return request({
    method: "post",
    url: "/api/Label/PageList",
    data
  });
}

// 新增标签
export function addTag(data) {
  return request({
    method: "post",
    url: "/api/Label/AddLabel",
    data
  });
}

// 修改标签
export function updateTag(data) {
  return request({
    method: "put",
    url: "/api/Label/UptLabel",
    data
  });
}

// 根据id获取信息
export function getTagById(id) {
  return request({
    method: "get",
    url: "/api/Label/GetLabel?id=" + id,
  });
}

// 根据id获取信息
export function deleteTagById(id) {
  return request({
    method: "delete",
    url: `/api/Label/DelLabel?id=${id}`,
  });
}
